home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3aniobj.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  6.2 KB  |  222 lines

  1.  
  2. // JavaScript wrapper for r3aniobj.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_ANIOBJ_H = 1;
  7. include("real/objects/r3level.js")
  8.  
  9.  
  10. var R3CLID_ANIOBJ = 142;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Evaluate point from the sub object whose ordnum is given. The point is evaluated
  16. //      using the objects current time.
  17. // p3: Tag[], tags: R3LEVA_OrdNum, (R3INT): ordnum of the sub object to be evaluated R3AOA_Result, R3VECTOR *:
  18. //      evaluated point.
  19.  
  20. R3AOM_EVALPARAM = 142000;
  21.  
  22. function mR3AOM_EVALPARAM(p3) {
  23.   Do(this.r3obj, 142000, p3, R3TID_TAG, R3TNF_ARRAY);
  24. }
  25.  
  26. // Description: This sends given method to all siblings except for those who are derived from
  27. //      the r3aniobj base class.
  28. // p3: Tag[], tags: R3AOA_PMethod - R3INT, method to be called for each target object R3AOA_PParam, -
  29. //      param for the method
  30.  
  31. R3AOM_PERFORMONTARGETS = 142001;
  32.  
  33. function mR3AOM_PERFORMONTARGETS(p3) {
  34.   Do(this.r3obj, 142001, p3, R3TID_TAG, R3TNF_ARRAY);
  35. }
  36.  
  37. // Description: Called when time or children has changed. When the animation object receives this method,
  38. //      it should update its target objects.
  39.  
  40. R3AOM_RECALCULATE = 142002;
  41.  
  42. function mR3AOM_RECALCULATE() {
  43.   DoA(this.r3obj, 142002, 0, R3TID_INTEGER, 0);
  44. }
  45.  
  46. // Description: Show/Hide sub choreographs
  47. // p3: Boolean, true shows, false hides    
  48.  
  49. R3AOM_SETOPEN = 142003;
  50.  
  51. function mR3AOM_SETOPEN(p3) {
  52.   DoA(this.r3obj, 142003, p3, R3TID_BOOLEAN, 0);
  53. }
  54.  
  55. // Description: Find out whether the object is 'opened' or not.
  56. // Returns: Boolean, true if opened.
  57.  
  58. R3AOM_GETOPEN = 142004;
  59.  
  60. function mR3AOM_GETOPEN() {
  61.   return   DoA(this.r3obj, 142004, 0, R3TID_INTEGER, 0);
  62. }
  63.  
  64.  
  65.  
  66.  
  67. R3AOA_TimeBegin = 142500;
  68. function SetR3AOA_TimeBegin(value) {
  69.   R3Set(this.r3obj, R3AOA_TimeBegin, value, R3TID_FLOAT, 0); 
  70. }
  71.  
  72. function GetR3AOA_TimeBegin() {
  73.   return R3Get(this.r3obj, R3AOA_TimeBegin, R3TID_FLOAT, 0); 
  74. }
  75.  
  76. R3AOA_TimeEnd = 142501;
  77. function SetR3AOA_TimeEnd(value) {
  78.   R3Set(this.r3obj, R3AOA_TimeEnd, value, R3TID_FLOAT, 0); 
  79. }
  80.  
  81. function GetR3AOA_TimeEnd() {
  82.   return R3Get(this.r3obj, R3AOA_TimeEnd, R3TID_FLOAT, 0); 
  83. }
  84.  
  85. R3AOA_Frequency = 142502;
  86. function SetR3AOA_Frequency(value) {
  87.   R3Set(this.r3obj, R3AOA_Frequency, value, R3TID_FLOAT, 0); 
  88. }
  89.  
  90. function GetR3AOA_Frequency() {
  91.   return R3Get(this.r3obj, R3AOA_Frequency, R3TID_FLOAT, 0); 
  92. }
  93.  
  94. R3AOA_Phase = 142503;
  95. function SetR3AOA_Phase(value) {
  96.   R3Set(this.r3obj, R3AOA_Phase, value, R3TID_FLOAT, 0); 
  97. }
  98.  
  99. function GetR3AOA_Phase() {
  100.   return R3Get(this.r3obj, R3AOA_Phase, R3TID_FLOAT, 0); 
  101. }
  102.  
  103. R3AOA_TimeCurrent = 142504;
  104. function SetR3AOA_TimeCurrent(value) {
  105.   R3Set(this.r3obj, R3AOA_TimeCurrent, value, R3TID_FLOAT, 0); 
  106. }
  107.  
  108. function GetR3AOA_TimeCurrent() {
  109.   return R3Get(this.r3obj, R3AOA_TimeCurrent, R3TID_FLOAT, 0); 
  110. }
  111.  
  112. R3AOA_InitTimeCurrent = 142505;
  113. function SetR3AOA_InitTimeCurrent(value) {
  114.   R3Set(this.r3obj, R3AOA_InitTimeCurrent, value, R3TID_FLOAT, 0); 
  115. }
  116.  
  117. var R3AOA_Result = 142506; // r3Vect
  118. var R3AOA_ParamOffset = 142507; // r3Vect
  119. var R3AOA_PMethod = 142508; // Integer
  120. var R3AOA_PParam = 142509; // Object
  121. R3AOA_TimeCurve = 142510;
  122. function GetR3AOA_TimeCurve() {
  123.   return R3ToJS(R3Get(this.r3obj, R3AOA_TimeCurve, R3TID_OBJECT, 0)); 
  124. }
  125.  
  126. R3AOA_Weight = 142511;
  127. function SetR3AOA_Weight(value) {
  128.   R3Set(this.r3obj, R3AOA_Weight, value, R3TID_FLOAT, 0); 
  129. }
  130.  
  131. function GetR3AOA_Weight() {
  132.   return R3Get(this.r3obj, R3AOA_Weight, R3TID_FLOAT, 0); 
  133. }
  134.  
  135. R3AOA_TimeBeginAbsolute = 142512;
  136. function SetR3AOA_TimeBeginAbsolute(value) {
  137.   R3Set(this.r3obj, R3AOA_TimeBeginAbsolute, value, R3TID_FLOAT, 0); 
  138. }
  139.  
  140. function GetR3AOA_TimeBeginAbsolute() {
  141.   return R3Get(this.r3obj, R3AOA_TimeBeginAbsolute, R3TID_FLOAT, 0); 
  142. }
  143.  
  144. R3AOA_TimeEndAbsolute = 142513;
  145. function SetR3AOA_TimeEndAbsolute(value) {
  146.   R3Set(this.r3obj, R3AOA_TimeEndAbsolute, value, R3TID_FLOAT, 0); 
  147. }
  148.  
  149. function GetR3AOA_TimeEndAbsolute() {
  150.   return R3Get(this.r3obj, R3AOA_TimeEndAbsolute, R3TID_FLOAT, 0); 
  151. }
  152.  
  153. R3AOA_TimeCurrentAbsolute = 142514;
  154. function SetR3AOA_TimeCurrentAbsolute(value) {
  155.   R3Set(this.r3obj, R3AOA_TimeCurrentAbsolute, value, R3TID_FLOAT, 0); 
  156. }
  157.  
  158. function GetR3AOA_TimeCurrentAbsolute() {
  159.   return R3Get(this.r3obj, R3AOA_TimeCurrentAbsolute, R3TID_FLOAT, 0); 
  160. }
  161.  
  162. R3AOA_Periodic = 142515;
  163. function SetR3AOA_Periodic(value) {
  164.   R3Set(this.r3obj, R3AOA_Periodic, value, R3TID_BOOLEAN, 0); 
  165. }
  166.  
  167. function GetR3AOA_Periodic() {
  168.   return R3Get(this.r3obj, R3AOA_Periodic, R3TID_BOOLEAN, 0); 
  169. }
  170.  
  171. R3AOA_EnableCurve = 142516;
  172. function SetR3AOA_EnableCurve(value) {
  173.   R3Set(this.r3obj, R3AOA_EnableCurve, value, R3TID_BOOLEAN, 0); 
  174. }
  175.  
  176. function GetR3AOA_EnableCurve() {
  177.   return R3Get(this.r3obj, R3AOA_EnableCurve, R3TID_BOOLEAN, 0); 
  178. }
  179.  
  180.  
  181.  
  182. function r3Aniobj () { 
  183.    this.base = r3God;
  184.    if(arguments.length) {
  185.       this.base(R3CLID_ANIOBJ, arguments);
  186.    }
  187.    // Methods
  188.    this.EVALPARAM=mR3AOM_EVALPARAM;
  189.    this.PERFORMONTARGETS=mR3AOM_PERFORMONTARGETS;
  190.    this.RECALCULATE=mR3AOM_RECALCULATE;
  191.    this.SETOPEN=mR3AOM_SETOPEN;
  192.    this.GETOPEN=mR3AOM_GETOPEN;
  193.  
  194.    // Attributes
  195.    this.GetTimeBegin=GetR3AOA_TimeBegin;
  196.    this.SetTimeBegin=SetR3AOA_TimeBegin;
  197.    this.GetTimeEnd=GetR3AOA_TimeEnd;
  198.    this.SetTimeEnd=SetR3AOA_TimeEnd;
  199.    this.GetFrequency=GetR3AOA_Frequency;
  200.    this.SetFrequency=SetR3AOA_Frequency;
  201.    this.GetPhase=GetR3AOA_Phase;
  202.    this.SetPhase=SetR3AOA_Phase;
  203.    this.GetTimeCurrent=GetR3AOA_TimeCurrent;
  204.    this.SetTimeCurrent=SetR3AOA_TimeCurrent;
  205.    this.SetInitTimeCurrent=SetR3AOA_InitTimeCurrent;
  206.    this.GetTimeCurve=GetR3AOA_TimeCurve;
  207.    this.GetWeight=GetR3AOA_Weight;
  208.    this.SetWeight=SetR3AOA_Weight;
  209.    this.GetTimeBeginAbsolute=GetR3AOA_TimeBeginAbsolute;
  210.    this.SetTimeBeginAbsolute=SetR3AOA_TimeBeginAbsolute;
  211.    this.GetTimeEndAbsolute=GetR3AOA_TimeEndAbsolute;
  212.    this.SetTimeEndAbsolute=SetR3AOA_TimeEndAbsolute;
  213.    this.GetTimeCurrentAbsolute=GetR3AOA_TimeCurrentAbsolute;
  214.    this.SetTimeCurrentAbsolute=SetR3AOA_TimeCurrentAbsolute;
  215.    this.GetPeriodic=GetR3AOA_Periodic;
  216.    this.SetPeriodic=SetR3AOA_Periodic;
  217.    this.GetEnableCurve=GetR3AOA_EnableCurve;
  218.    this.SetEnableCurve=SetR3AOA_EnableCurve;
  219. }
  220.  
  221. r3Aniobj.prototype=new r3Level;
  222. // r3aniobj.h_H